package cn.wx.properties;

import cn.wx.common.properties.WxProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * 微信公众平台配置
 *
 * @author: sunshaoping
 * @date: Create by in 5:13 下午 2020/5/23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ConfigurationProperties(prefix = WxOpenProperties.PREFIX)
public class WxOpenProperties extends WxProperties {

    public static final String PREFIX = "wx.open";

    /**
     * 公众平台开关
     */
    private boolean enabled = true;
    /**
     * 多个公众平台配置
     */
    private List<WxProperties> multiple;

}
